using FluentNHibernate.Mapping;

namespace TaskKernel.Domain.Nhibernate.Mappings
{
    public class CommentTaskHistoryEntryMap : SubclassMap<CommentTaskHistoryEntry>
    {
        public CommentTaskHistoryEntryMap()
        {
            Table("task_Comments");
            DiscriminatorValue((int) HistoryEntryType.Comment);
            Map(t => t.Comment).CustomType("StringClob").CustomSqlType("text");
        }
    }
}